package org.springframework.demo5;
//
public abstract class AbstarctTemplate {

	private void openFreezer(){
		System.out.println("打开冰箱门");
	}

	//抽象方法
	protected abstract void putIn();

	private void close(){
		System.out.println("关闭冰箱门");
	}


	public void entry(){
		openFreezer();
		putIn();
		close();
	}
}
